package com.molin.DateTest.DateDemo;

import java.util.Date;

public class demo2 {
    public static void main(String[] args) {
        Date date1=new Date();
        long time= date1.getTime();
        System.out.println(time);

        Date date2=new Date();
        date2.setTime(0L);
        System.out.println(date2);
    }
}
